package design_pattern.WorkerThreadMode;

/**
 * @Author: 蔡翔
 * @Date: 2019/11/20 16:32
 * @Version 1.0
 *
 * （重要）
 * 好的设计模式，流水线，工厂，工人
 */
public class WorkClient {
    public static void main(String[] args) {
        final Channel channel = new Channel(5);
        channel.startWorker();

        new TransportThread("Alex",channel).start();
        new TransportThread("jack",channel).start();
        new TransportThread("cx",channel).start();
        new TransportThread("xyw",channel).start();
        new TransportThread("st",channel).start();

    }
}
